#pragma once
#include "Screen.h"
#include "MovingObject.h"

class Effects:public MovingObject
{
protected: 
	bool isActived;
	int _typeEffects; 
	/*
	1- GombaDied.
	2- TurtleDied.
	3- BulletExplosion.
	*/
	float _timeAnimation;
	float _timeStartAnimation;
	Sprite *_spriteGombaDied;
	Sprite *_spriteTurtleDied;
	Sprite *_spriteBulletExplosion;
public:
	Effects(void);
	Effects(int _type);
	Effects(int x, int y, int Width, int Height, float vx, float vy, int deltaTime, LPD3DXSPRITE spriteHandler, LPDIRECT3DTEXTURE9 image);
	Effects(float x, float y, float vx, float vy, int deltaTime,int resourceName,CResourceManager* rm);
	~Effects();
	void SetTypeEffects(int _type);
	void SetXY(float _eX,float _eY);
	void SetVX(float vx);
	void SetVY(float vy);
	void SetTimeAnimation(float _time);
	void Move();
	void Render();
};